// 发送email

import proFetch from '../../../public/functions/project-fetch';

export default (data,kind) => {
    if (kind == 1) {
        return proFetch({
            url: '/nccloud/hrhi/entry/sendemail.do',
            body: {
                pk_psndoc: data.pk_psndoc,
            }
        });
    } else if (kind == 2) {
        return proFetch({
            url: '/nccloud/hrhi/entry/qrcode.do',
            body: {
            }
        });
    } else if (kind == 3) {
        return proFetch({
            url: '/nccloud/hrhi/psninfo/PsndocGlbdefSaveAction.do',
            body: data
        });
    } else if (kind == 4) {
        return proFetch({
            url: '/nccloud/hrhi/psninfo/PsndocGlbdef9QryAction.do',
            body: {
            }
        });
    }else if (kind == 5) {
        return proFetch({
            url: '/nccloud/hrhi/psninfo/PsndocOfferInfoQryAction.do',
            body: data
        });
    }
    else if (kind == 6) {
        return proFetch({
            url: '/nccloud/hrhi/psninfo/PsndocGlbdef9QryAction.do',
            body: data
        });
    }


}
